#ifndef LAYERSDOCK_H
#define LAYERSDOCK_H

#include <QDockWidget>
#include <QMap>

class LayerDockWidget;

class LayersDock : public QDockWidget
{
    Q_OBJECT
public:
    explicit LayersDock(const QString &title, QWidget *parent = Q_NULLPTR,
                         Qt::WindowFlags flags = Qt::WindowFlags());
    virtual ~LayersDock();

public slots:
    void addLayerDockWidget(int nID, const QString &strBLayerName);
    void delLayerDockWidget(int nID);
    void changeLayerDockWidget(int nID);

private:
    void initSettingWidget();
    void connetSignalToSlots();

private:
    QMap<int, LayerDockWidget*>* m_pLayerDockWidgetsMap;
};

#endif // LAYERSDOCK_H
